package cn.edu.gcu.lost.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.gcu.lost.sys.entity.Menu;
import cn.edu.gcu.lost.sys.entity.Role;

public interface RoleDao {

	Role findRoleByUser(Role role);

	List<Role> findAllList(Role role);

	int insert(Role role);

	int addMenu(@Param(value="role")Role role, @Param(value="menu")Menu menu);

	int update(Role role);

	void removeAllMenu(Role role);

	int delete(Role role);

	int isExist(Role role);

	int isUseable(Role role);

	String queryUseable(Role role);

	Role findDetail(Role role);

}
